<template>
  <view class="emptyPage" :style="{ paddingTop: top ? `${top}rpx` : '320rpx', paddingBottom: bottom ? `${bottom}rpx` : '320rpx' }">
    <image class="image" v-if="src" :src="src" :style="{ width: width ? `${width}rpx` : '240rpx', height: height ? `${height}rpx` : '240rpx' }"></image>
    <image class="image" v-else src="../../static/images/massageChair_emptyPage_img.png" :style="{ width: width ? `${width}rpx` : '240rpx', height: height ? `${height}rpx` : '240rpx' }"></image>
    <view class="tip">
      <slot>暂无消费记录</slot>
    </view>
  </view>
</template>
<script>
export default {
  name: 'emptyPage',
  props: {
    width: String,
    height: String,
    top: String,
    src: String,
  }
}
</script>
<style lang="scss" scoped>
.emptyPage {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  .image {
    width: 360rpx;
    height: 360rpx;
    margin-bottom: 24rpx;
    // filter: grayscale(100%);
  }

  .tip {
    width: 100%;
    text-align: center;
    font-size: 32rpx;
    color: #76839B;
    line-height: 44rpx;
  }
}
</style>